package com.taglab.chic.taglib.analytics;

import org.springframework.util.Assert;

public class Item {

  private String sku;
  private String name;
  private String category;
  private String price;
  private String quantity;
  
  public Item(String sku, String price, String quantity) {
    this(sku, null, null, price, quantity);
  }
  
  public Item(String sku, String name, String category, String price, String quantity) {
    Assert.hasLength(sku, "sku must be set");
    Assert.hasLength(price, "price must be set");
    Assert.hasLength(quantity, "quantity must be set");
    this.sku = sku;
    this.name = name;
    this.category = category;
    this.price = price;
    this.quantity = quantity;  
  }
  
  public String getSku() {
    return sku;
  }
  public String getName() {
    return name;
  }
  public String getCategory() {
    return category;
  }
  public String getPrice() {
    return price;
  }
  public String getQuantity() {
    return quantity;
  }
  
}
